package org.university.dto.response;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.university.entity.User;

import java.time.LocalDateTime;

/**
 * @Author  ：3570023082@qq.com
 * @Date    ：2025/9/14 10:45
 * @Description ：登录返回体
 */
@Data
@AllArgsConstructor
public class LoginResponseDTO {
    private String userId;  // 区别于Id

    private String userName;

    private User.UserRole userRole;
    // JWT Token
    private String token;
    // Token过期时间戳
    private LocalDateTime expiresTime;

    // 登录时间，主要方便前端调试
    private LocalDateTime loginTime;
}
